package com.zdb.personal.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.List;

/**
 * 城市表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "zdb_common_citys")
public class ZdbCommonCitysPo implements Serializable {
    @TableField("id")
    /** 城市编号 */
    private int id;
    /** 城市名称 */
    @TableField("name")
    private String text;
    /** 省份编号 */
    private int pid;
    /**
     * 子节点
     */
    @TableField(exist = false)
    private List<ZdbCommonDistrictPo> children;

}
